/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package MainClasses.Event;

import MainClasses.MyDate;
/**
 *
 * @author andrewcutler
 */
public class UserCheckEvent extends CheckableEvent{

    public UserCheckEvent()                                { super(Event.USERCHECK);                    }
    public UserCheckEvent(String name)                     { super(Event.USERCHECK, name);              }
    public UserCheckEvent(String name, String description) { super(Event.USERCHECK, name, description); }
    
    public EventPanel getPanel()
    {
        return new EventCheckPanel(this);
    }
    
    
    @Override
    public String getUniqueID() {
        return Event.typeStrings[getType()]+":::"
                +getChecked()+":::"
                +getEndDate().toString(MyDate.FORMAT_2, "-")+":::"
                +getStartDate().toString(MyDate.FORMAT_2, "-")+":::"
                +this.getName();
    }
    
    
}
